package com.tz.crm.entity.dto;

import com.tz.crm.entity.enumeration.Gender;
import com.tz.crm.entity.enumeration.Title;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by wangchunyang on 2017/3/7.
 */
public class ContactAdd {

    @NotBlank(message = "姓名不能为空")
    String name; // 联系人姓名
    Gender gender; // 性别
    Title title; // 职称
    String phone; // 固定电话
    String mobilePhone;// 移动电话
    String email; // 邮箱地址
    String qq;// QQ号
    String remark;// 备注
    boolean major;//是否设为主联系人
    String id;//用来接收页面id

    public ContactAdd() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public Title getTitle() {
        return title;
    }

    public void setTitle(Title title) {
        this.title = title;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean isMajor() {
        return major;
    }

    public void setMajor(boolean major) {
        this.major = major;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "ContactAdd{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                ", title=" + title +
                ", phone='" + phone + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", remark='" + remark + '\'' +
                ", major=" + major +
                ", id='" + id + '\'' +
                '}';
    }
}
